package com.six.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;   // 新增
import com.six.domain.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {   // 新增继承

    /* ===== 你原来就有的手写 SQL ===== */
    int insert(@Param("c") Category c);
    List<Category> listByStore(@Param("storeId") Integer storeId);
    int deleteCategoryById(@Param("storeId") Integer storeId,
                           @Param("ids") List<Long> ids);

    /* ===== 以后想偷懒可以直接用 BaseMapper 自带方法 ===== */
}